﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PhotoGallery.BLL;
using System.Security.Cryptography;
public partial class reg : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    /*注册操作*/
    protected void Submit1_Click(object sender, EventArgs e)
    {
        RegistAction r = new RegistAction();
        string password = Get_MD5(this.password.Value);
        r.regist(this.email.Value,password, this.nickname.Value);
        Response.Redirect("login.aspx");
    }
    public string Get_MD5(string strSource)
    {
        return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(strSource, "MD5");
    }
}